home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / airfox.swf / scripts / frame_1 / PlaceObject2_7_3 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  403 b   |  22 lines

  1. onClipEvent(enterFrame){
  2.    loaded = int(_root.getBytesLoaded());
  3.    percent = int(loaded / total * 100);
  4.    _root.percent = percent + " %";
  5.    if(percent >= 100)
  6.    {
  7.       startcounter = 1;
  8.    }
  9.    if(0 < startcounter)
  10.    {
  11.       playcounter++;
  12.       _root.percent = playcounter;
  13.    }
  14.    if(50 < playcounter)
  15.    {
  16.       tellTarget("_root")
  17.       {
  18.          play();
  19.       }
  20.    }
  21. }
  22.